<?php 
namespace Common\Service\Pay;
use Common\ServiceInterface\PayService;
/**
 * 支付宝网页版服务接口
 * @author liuyang
 *
 */  
require_once("pay/alipay/lib/alipay_submit.class.php");
 
class AlipayWapService implements PayService{
   
        public  function getSignInfo($data,$alipay_config){ 
            
            $data['partner']=$alipay_config['partner'];
            $data['seller_id']=$alipay_config['seller_id'];
            $data['notify_url']=$alipay_config['notify_url'];
            $data['service']="alipay.wap.create.direct.pay.by.user";
            $data['payment_type']="1"; 
            $data['_input_charset']="utf-8";
            $data['sign_type']="RSA";
            $data['return_url']=$alipay_config['return_url'];
            $data['show_url']="m.alipay.com"; 
            //建立请求
            $alipaySubmit = new \AlipaySubmit($alipay_config);
            $html_text = $alipaySubmit->buildRequestForm($data,"get", "确认");
            $rst = array();
            $rst['url']=$html_text;
            return $rst;
        }
	   
}